package org.web.datajpa.constant;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(200,"成功"),
    COMMON_ERROR(1,"通用错误"),
    SERVER_ERROR(500,"服务器失败"),
    LOGIN_ERROR(2,"用户名或密码错误！"),
    QUERY_ERROR(3,"查询失败"),
    UNKNOWN_ERROR(-999,"未知错误");
    // 枚举的属性
    private Integer code;
    private String msg;
    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
